package com.pig4cloud.pig.village.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 家庭表-户
 * @author limbray.li
 * @date 2021/6/12
 */
@Data
@TableName("organization_family")
public class Family {
	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private Long id;
	@JsonIgnore
	private LocalDateTime createTime;
	@JsonIgnore
	private LocalDateTime updateTime;
	@JsonIgnore
	private String createBy;
	@JsonIgnore
	private String updateBy;
	@JsonIgnore
	@TableLogic(value = "0", delval = "1")
	private String delFlag;
	@JsonIgnore
	private Integer tenantId;

	@ApiModelProperty(value = "户号")
	private String familyName;
	@ApiModelProperty(value = "户地址")
	private String address;
	@ApiModelProperty(value = "户主")
	private Long leader;

	@JsonIgnore
	private Long teamId;
	@ApiModelProperty(value = "家禽退养", notes = "0: 是，1: 不是")
	private Integer abandonPoultry;
}
